﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BiografController.ServiceReference;
namespace BiografController
{
    public class SalgController
    {
        IRemoteBookingSystem cli;

        public SalgController()
        {
            cli = new RemoteBookingSystemClient();
        }

        public void NySalg(DateTime datoOprettet, int antalBilletter, string salgsType, double totalPris, int forestilling, int kundeTlf, Saede[] s)
        {
            cli.NySalg(datoOprettet, antalBilletter, salgsType, totalPris, forestilling, kundeTlf, s);
        }

        public void OpdaterSalg(int telefonNr, string salgsType)
        {
            cli.EditSalg(telefonNr, salgsType);
        }

        public List<Salg> AlleSalg(int telefonNr)
        {
            return cli.GetAlleSalg(telefonNr).ToList();
        }

        public Salg GetEnSalg(int salgId)
        {
            return cli.GetEnSalg(salgId);
        }
    }
}
